package com.coldlz.mmp.proxy;

public class Main {

    // C:/Users/lj/.m2/repository/io/netty/netty-codec-http/4.1.108.Final/netty-codec-http-4.1.108.Final-sources.jar!/io/netty/handler/codec/http/HttpObjectDecoder.java:530
    public static void main(String[] args) {
        ProxyConfig proxyConfig = new ProxyConfig();
        proxyConfig.setDirectForward(false);
//        proxyConfig.setOpenSystemProxy(false);
        proxyConfig.setOpenSystemProxy(true);

        MMPServer server = new MMPServer(proxyConfig);
        server.start();
        Runtime.getRuntime().addShutdownHook(new Thread(server::stop));
    }
}
